package com.yipao.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoKeyword;
import com.yipao.db.domain.YipaoKeywordExample;

public interface KeywordMapper {

    long countByExample(YipaoKeywordExample example);


    int deleteByExample(YipaoKeywordExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoKeyword record);


    int insertSelective(YipaoKeyword record);


    YipaoKeyword selectOneByExample(YipaoKeywordExample example);


    YipaoKeyword selectOneByExampleSelective(@Param("example") YipaoKeywordExample example, @Param("selective") YipaoKeyword.Column ... selective);


    List<YipaoKeyword> selectByExampleSelective(@Param("example") YipaoKeywordExample example, @Param("selective") YipaoKeyword.Column ... selective);


    List<YipaoKeyword> selectByExample(YipaoKeywordExample example);


    YipaoKeyword selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoKeyword.Column ... selective);


    YipaoKeyword selectByPrimaryKey(Integer id);


    YipaoKeyword selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoKeyword record, @Param("example") YipaoKeywordExample example);


    int updateByExample(@Param("record") YipaoKeyword record, @Param("example") YipaoKeywordExample example);


    int updateByPrimaryKeySelective(YipaoKeyword record);


    int updateByPrimaryKey(YipaoKeyword record);


    int logicalDeleteByExample(@Param("example") YipaoKeywordExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
